#include <iostream>
#include <string>

int main() {
    std::string s
    int k_open = 0;
    int k_close = 0;
    for (int i = 0; i < s.length(); i++) {
        if (s[i] == '(') {
            k_open++;
        }
        if (s[i] == ')') {
            k_close++;
        }
    }
    if (k_open == k_close) {
        std::cout << "True" << std::endl;
    }

    if (k_open != k_close) {
        std::cout << "False" << std::endl;
    }

    return 0;
}
